﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DeansWsccProject
{
    public partial class home : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnCalculate_Click(object sender, EventArgs e)
        {
            lblResult.Text = getSum(tbFirstNo.Text, tbSecondNo.Text);
        }

        private string getSum(string firstNoStr, string secondNoStr)
        {
            int firstNo = Convert.ToInt32(firstNoStr);
            int secondNo = Convert.ToInt32(secondNoStr);
            int result = firstNo + secondNo;
            return Convert.ToString(result);
        }
    }
}